// 进程相关

process.stdin.on('data', function(data){
    console.log(data.toString())
})




return

process.stdout.write('hello')
process.stdout.write("\n")
process.stdout.write('nodejs')



return
console.log('当前进程pid:', process.pid)
console.log('操作系统:', process.platform)
console.log('cpu架构:', process.arch)

return



console.log(process.argv)
/*
* 'C:\\Program Files\\nodejs\\node.exe',
  'E:\\lanlang\\vue2-learning\\nodejs\\processes.js',
  'aa',
  'bb'
* */

console.log(process.cwd())  // E:\lanlang\vue2-learning\nodejs

console.log(process.env)  // 获取当前执行环境的环境变量 (对象形式)

// process.exit(2)









